processImage

abstract suspend fun EditorScope.processImage(bitmap: Bitmap): BackgroundRemovalMask

Processes bitmap and returns a mask where foreground pixels should remain visible.

Return

segmentation mask for bitmap.

Parameters

bitmap

source image to segment.